class Coordenada {
    double x
    double y
    Coordenada(posx, posy){
        this.x = posx
        this.y = posy
    }    
    Coordenada plus(Coordenada coord){
        new Coordenada(this.x + coord.x, this.y + coord.y)
    }
    String toString(){
        "x: " + x + " y: " + y
    }
}
def c1 = new Coordenada(1,2)
def c2 = new Coordenada(4,3)
println c1 + c2